import 'package:flutter/material.dart';
import 'package:live_bg_mobile/widget/ripple_container.dart';

import '../common/const/app_style_const.dart';

class RippleCardContainer extends StatelessWidget {
  final BorderRadius? borderRadius;
  final double width;
  final double height;
  final BoxBorder? border;
  final EdgeInsetsGeometry? padding;
  final GestureTapCallback? onTap;
  final Widget? child;

  const RippleCardContainer(
      {Key? key,
      this.width = 95,
      this.height = 95,
      this.padding,
      this.borderRadius,
      this.border,
      this.child,
      this.onTap})
      : super(key: key);

  @override
  Widget build(BuildContext context) {
    return RippleContainer(
      onTap: onTap ?? () {},
      borderRadius: borderRadius ?? BorderRadius.circular(4.0),
      child: Container(
        width: width,
        height: height,
        padding: padding ?? const EdgeInsets.all(4.0),
        decoration: BoxDecoration(
            borderRadius: borderRadius ?? BorderRadius.circular(4.0),
            border: border ?? const Border.fromBorderSide(borderStyle)),
        child: child ?? Container(),
      ),
    );
  }
}
